package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * @Author mingliang
 * @Description 精线索套餐
 * @Date 2021/10/26 19:23
 **/
@Getter
public enum FineClueEnum {
    /**
     * 开通精线索套餐分类
     */
    FINE_CLUE(1),

    BUSINESS(2);

    private Integer type;


    FineClueEnum(Integer type) {
        this.type = type;

    }

    public static FineClueEnum getByType(Integer type) {
        for (FineClueEnum soukeMealEnum : values()) {
            if (Objects.equals(soukeMealEnum.getType(), type)) {
                return soukeMealEnum;
            }
        }
        return null;
    }

}
